<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hz.util.ParamUtil"%>
<%@page import="com.hz.control.UserControl"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>My JSP 'index.jsp' starting page</title>
  </head>
  
  <body>
  <%
       request.setCharacterEncoding("utf-8");
       int uid = ParamUtil.getInt(request,"userid");
       if(UserControl.deleteUser(uid)){
       %>
       <script>
       window.location.href=document.referrer;
       </script>
       <%
       
       }else{
   %>
   <script>
       alert("删除失败");
       history.go(-1);
       </script>
       <%} %>
  </body>
</html>
